from  fanyi.punctuation1 import removePunctuation
from fanyi import baidu,google,youdao
def main(text=None):
    if not text:
        return
    #谷歌
    try:
        l1=google.Google().run(text)
    except:
        l1=[]
    # 有道
    try:
        l2=youdao.YouDao.main(text)
    except:
        l2=[]
    #百度
    try:
        l3=baidu.Baidu.main(text)
    except:
        l3=[]
    l1.extend(l2)
    l1.extend(l3)
    rest=l1
    lsts=[]
    for text in rest:
        lsts.append(removePunctuation(text))
    results=list(set(lsts))
    return results
